import { NgModule } from '@angular/core';
import { RouterModule } from '@angular/router'
import { CommonServiceModule } from '../../common/common.service.module';
import { WarnComponent } from './warn.component';
import { WatchingModule } from './watching/watching.module';
import { WarnningModule } from './warnning/warnning.module';
@NgModule({
    imports: [
        CommonServiceModule,
        RouterModule.forChild([
            {
                path: '',
                component: WarnComponent,
                children: [

                    {
                        path: 'watching',
                        loadChildren: './watching/watching.module#WatchingModule'
                    },
                    {
                        path: 'warnning',
                        loadChildren: './warnning/warnning.module#WarnningModule'
                    }
                ]
            },
        ])
    ],
    providers: [

    ],
    declarations: [
        WarnComponent,
    ],
    exports: [
        WarnComponent,
    ],
})
export class WarnModule { }